xen/arm: p2m: Switch the p2m lock from spinlock to rwlock
authorJulien Grall <julien.grall@arm.com>
Thu, 28 Jul 2016 14:20:12 +0000 (15:20 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 29 Jul 2016 00:41:55 +0000 (17:41 -0700)
commit5dca4f3ca759efd9b8aabab4fba802b12e5b64e1
treec617345836d7012780bb780ec5aa8c6db03d38fa
parent01e60f9cc7e91034b409ee781d379b81f32f4c81
xen/arm: p2m: Switch the p2m lock from spinlock to rwlock

P2M reads do not require to be serialized. This will add contention
when PV drivers are using multi-queue because parallel grant
map/unmaps/copies will happen on DomU's p2m.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c
xen/include/asm-arm/p2m.h